package cn.tedu.service.impl;

import cn.tedu.entity.TextMsg;
import cn.tedu.service.IMessageHandler;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 文本消息处理
 * @author Kiven
 */
@Service("text")
public class TextMessageHandler implements IMessageHandler {

    //处理文本消息
    @Override
    public String handler(Map<String, Object> map) {
        // GPT
        return TextMsg.ofSendMsg(map,"你也好啊").toXml();
    }
}
